CMDError$ = "#" & LTrim$(Str$(lngErrCode&)) & ", " & "PD_RETURNDEFAULT set in PRINTDLG data structure, but AhDevMode or hDevNames field set to non-zero value."
CMDError$ = "#" & LTrim$(Str$(lngErrCode&)) & ", " & "Unable to recognize setting in [DEVICES] section in WIN.INI file."
Case 28668
CMDError$ = "#" & LTrim$(Str$(lngErrCode&)) & ", " & "PD_RETURNDEFAULT set in PRINTDLG data structure, but AhDevMode or hDevNames field set to non-zero value."
Case 28667
CMDError$ = "#" & LTrim$(Str$(lngErrCode&)) & ", " & "Failed to access printer driver specified by PRINTDLG."
Case 28666
CMDError$ = "#" & LTrim$(Str$(lngErrCode&)) & ", " & "Failed to initialize DEVMODE structure in printer driver."
CMDError$ = "#" & LTrim$(Str$(lngErrCode&)) & ", " & "DEVMODE and DEVNAMES data points to 2 different printers."
Case 28661
CMDError$ = "#" & LTrim$(Str$(lngErrCode&)) & ", " & "Error creating content text information in PRINTDLG."
Case 28660
CMDError$ = "#" & LTrim$(Str$(lngErrCode&)) & ", " & "Missing printer entry in [DEVICES] section in WIN.INI file."
Case 24574
CMDError$ = "#" & LTrim$(Str$(lngErrCode&)) & ", " & "Font not found. Set on of CF_BOTH, CF_PRINTERFONTS, or CF_SCREENFONTS before trying to display Font Section dialog box."
Case 20478
CMDError$ = "#" & LTrim$(Str$(lngErrCode&)) & ", " & "Not enough memory. Unable to display items in list box."
CMDError$ = "#" & LTrim$(Str$(lngErrCode&)) & ", " & "Buffer specified by lpstrFile member too small. Only first character of file name set to FileName propery."